<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>账户信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
      <form id="changeAcc_form">
         <div class="fieldset1 tabel_col tabel_col_1 clearFix">
            <div class="caption">
            	账户信息详情
            </div>
            <div class="fieldBox col_50">
                <div class="label">类型</div>
                <div class="field">
                    <span name="accTypNm" id="accTypNm">&nbsp;${sysBkAccInfoVO.accTypNm}</span>
                    
                    <input name="accTypCd" id="accTypCd" type="hidden" value="${sysBkAccInfoVO.accTypCd}">
                </div>
            </div>
            <div class="fieldBox col_50">
                <div class="label">开户行</div>
                <div class="field">
                    <span name="bkNm" id="bkNmC">&nbsp;${sysBkAccInfoVO.bkNm }</span>
                </div>
            </div>
            <div class="fieldBox col_50">
                <div class="label">账号名称</div>
                <div class="field">
                	${sysBkAccInfoVO.accNm }
                </div>
            </div>
            <div class="fieldBox col_50">
                <div class="label">账号</div>
                <div class="field">
                		${sysBkAccInfoVO.accNo }
                </div>
            </div>
            <div class="fieldBox col_100" >
                <div class="label">支持平台</div>
                <div class="field">
                  	<c:forEach items="${sysOrgList }" var="item" begin="0" step="1" varStatus="status">
                        	<input type="checkbox" orgcd="${item.orgCd }" orgid="${item.id }" value="${item.id }" name="orgIds" />${item.orgNm }<br/>	
                  	</c:forEach>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">账户备注</div>
                <div class="field">${sysBkAccInfoVO.accRem}
                </div>
            </div>
            <div style="display:none">
            	<input type="text" value="${sysBkAccInfoVO.id }" name="dateId"/>
            	<input type="text" value="${sysBkAccInfoVO.orgIdsList }" name="orgIdsList" id="orgIdsList"/>
            </div>
        </div>
    </form>
<script>
	$(function() {
		
   		$("#changeAcc_form").ligerForm({
              validate: true
         });
   		var orgIdsList=$("#orgIdsList").val();
   	 	var _orgIds = orgIdsList;
   	    var _org = $('input:checkbox[name="orgIds"]');
     	for(var i = 0; i<_org.length; i++){
	     	_org_val=$(_org[i]).val();
	     	if(_orgIds.indexOf((+_org_val))>=0){
     			$(_org[i]).ligerGetCheckBoxManager().setValue(true);
     		}
     	}
	});
	</script>
</body>
</html>
